package Test_319_6;

public class English extends Student {
    //属性
    double speeches;//演讲

    @Override
    public Double CourseScore() {
        Double score = null;

        score = MyUtils.getDaulbeValue(this.getSpeeches())*0.5
                +MyUtils.getDaulbeValue(this.getMidterms())*0.25
                +MyUtils.getDaulbeValue(this.getFinals())*0.25;

        return score == 0.0 ? null:score;
    }

    public double getSpeeches() {
        return speeches;
    }

    public void setSpeeches(double speeches) {
        this.speeches = speeches;
    }
}
